<?xml version="1.0" encoding="UTF-8"?>

<!--
    Document   : payroll.xsl
    Created on : November 24, 2012, 6:37 PM
    Author     : HoangTN
    Description:
        Purpose of transformation follows.
-->

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="html"/>

    <xsl:template match="/">
        <xsl:apply-templates/>
    </xsl:template>
    <xsl:template match="payrolls">
        <table border="1" width="75%">
            <tr>
                <th>Employee Name</th>
                <th>Payroll Date</th>
                <th>Amount</th>
                <th>Type</th>
            </tr>
            <xsl:for-each select="payroll">
                <tr>
                    <td>
                        <xsl:value-of select="employeeName"/>
                    </td>
                    <td>
                        <xsl:value-of select="payrollDate"/>
                    </td>
                    <td>
                        <xsl:value-of select="amount"/>
                    </td>
                    <td>
                        <xsl:value-of select="payrollType"/>
                    </td>
                </tr>
            </xsl:for-each>
        </table>
    </xsl:template>

</xsl:stylesheet>
